package jp.gr.java_conf.koharasjk.syncstickynotes;

import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.util.Log;

public class PrefActivity extends PreferenceActivity {

	private final String TAG = "PrefActivity";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.d(TAG, "onCreate");
		addPreferencesFromResource(R.xml.preference);
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	public void onContentChanged() {
		super.onContentChanged();
		Log.d(TAG, "onContentChanged");
	}

	@Override
	protected void onPause() {
		super.onPause();
		Log.d(TAG, "onPause");

		// 設定画面から抜け出すときDbUtilに設定情報を反映させる
		DbUtil.init(getApplicationContext());
	}

	@Override
	protected void onStop() {
		super.onStop();
		Log.d(TAG, "onStop");
	}

}
